Page({
  onShareAppMessage() {
    return {
      title: 'text',
      path: 'packageComponent/pages/content/text/text'
    }
  },

  data: {
    schema: [{
      label:'文本内容',
      prop:'text',
      type:'text'
    },{
      label:'是否可选',
      prop:'userSelect',
      type:'switch'
    },{
      label:'溢出处理',
      prop:'overflow',
      type:'picker',
      labelOptions:['修剪文本','淡出','显示省略号','文本不截断'],
      valueOptions:['clip','fade','ellipsis','visible']
    },{
      label:'最大行数',
      prop:'maxLines',
      type:'number',
    }],
    formData: {
      text:'',
      userSelect:false,
      overflow:'visible',
      maxLines:'1'
    },
    title: '',
    result: '',
    zh:'',
    apiType: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },
  onLoad(options) {
    this.setData({
      apiType: options.zh,
      title: options.title,
      zh: options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  },
  getFormData(e){
    this.setData({
      formData:e.detail.formData
    })
  }
})
